LearningStoreJob.DemandRight Method (string)

Demand a right. When the job is executed, the job will be aborted unless the current user has the specified right.

Parent Type: LearningStoreJob

Namespace: Microsoft.LearningComponents.Storage

Assembly: Microsoft.LearningComponents.Storage.dll

Syntax
C#

public void DemandRight (
string rightName

)

Parameters

rightName

The name of the right to demand

Exceptions
Exception type Condition
ArgumentNullException

rightName is a null reference.

System.InvalidOperationException

The right in rightName doesn't exist in the store.

Remarks

Calls DemandRight(rightName, null). See that overload for more details.